#include <iostream>
#include <string>
using namespace std;

int main(){
	string* str = new string("A string");
	const string & mystring = *str;
	const string& mystring1=string(*str);
	delete str;
	// cout << mystring << endl; //error
	cout << mystring1 << endl; 
	return 0;
}
